<?if($this->reviews) {?>
    <article class="module width_3_quarter">
        <header><h3 class="tabs_involved">Отзывы</h3></header>

        <div class="tab_container">
        <div class="tab_content" id="tab1" style="display: block;">
        <table cellspacing="0" class="tablesorter">
            <thead>
            <tr>
            <th class="header"></th>

            <th class="header">Фото</th>
            <th class="header">Имя</th>
            <th class="header">Город</th>
            <th class="header">Actions</th>
            </tr>
            </thead>
            <tbody>
                    <?foreach($this->reviews as $index => $value) {?>
                    <tr>
                        <td><input value="<?=$value->id?>" type="checkbox"></td>
                        <td>
                            <?if($value->small_photo_url) { ?>
                                <img width="60" src="/<?=$value->small_photo_url?>">
                            <? } else { ?>
                                &nbsp;
                            <? } ?>
                        </td>
                        <td><?=$value->name?></td>
                        <td><?=$value->city?></td>
                        <td>
                            <input onclick="window.location='<?=$this->url(array('action'=>'edit', 'id'=>$value->id))?>'" type="image" title="Edit" src="/images/admin/icn_edit.png">
                            <input onclick="jsConfirm('<?=$this->url(array('action'=>'delete', 'id'=>$value->id))?>','Вы уверены?')";  type="image"  title="Trash" src="/images/admin/icn_trash.png">
                        </td>
                    </tr>
                    <? } ?>
            </tbody>
        </table>
        </div><!-- end of #tab1 -->
        </div><!-- end of .tab_container -->
    </article>
<? } else { ?>
    <div>Отзывы отсутствуют</div>
<? } ?>

